#include "junix.h"
using namespace std;

uint64_t factor(uint64_t x) {
	if (x==0 || x==1) return 1;
	return factor(x-1)*x;
}

int main(int argc, char **argv)
{
	long double d=0.0;
	for (uint64_t i=0;i<21;i++) {
		cout<<setw(2)<<i<<" "<<1.0/factor(i)<<endl;
		d += 1.0/factor(i);
	}

	cout<<d<<endl;

}
